<script setup lang="ts">
import { onMounted } from 'vue'
import { getUserInfo } from '@/api/user'

onMounted(async () => {
  try {
    const res = await getUserInfo()
    console.log('用户信息：', res)
  } catch (error) {
    console.error(error)
  }
})
</script>

<template>
  <main>
    <div class="w-full h-full">test</div>
  </main>
</template>
